package com.adcc.sgs.gcs;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.smartUtility.mq.MQFactory;
import io.dropwizard.Configuration;

import javax.validation.constraints.NotNull;

//import org.jetbrains.annotations.NotNull;

/**
 * Created by nk on 2016/7/28.
 */
public class AppConfiguration extends Configuration {
    @NotNull
    private MQFactory mqRecvFactory;

    @NotNull
    private MQFactory mqSendFactory;

    @NotNull
    private String dbResource;

    @JsonProperty("activemq-recv")
    public MQFactory getMqRecvFactory() {
        return mqRecvFactory;
    }

    @JsonProperty("activemq-recv")
    public void setMqRecvFactory(MQFactory mqRecvFactory) {
        this.mqRecvFactory = mqRecvFactory;
    }

    @JsonProperty("activemq-send")
    public MQFactory getMqSendFactory() {
        return mqSendFactory;
    }

    @JsonProperty("activemq-send")
    public void setMqSendFactory(MQFactory mqSendFactory) {
        this.mqSendFactory = mqSendFactory;
    }

    @JsonProperty("db")
    public String getDbResource() {
        return dbResource;
    }

    @JsonProperty("db")
    public void setDbResource(String dbResource) {
        this.dbResource = dbResource;
    }
}
